<?php

namespace yiike\order\model;

use Yii;
use \yiike\order\model\base\OrderStore as BaseOrderStore;
use yii\helpers\ArrayHelper;

/**
 * This is the model class for table "ims_ttyc_order_store".
 */
class OrderStore extends BaseOrderStore
{

    public $area;


    public function behaviors()
    {
        return ArrayHelper::merge(
            parent::behaviors(),
            [
                # custom behaviors
            ]
        );
    }

    public function rules()
    {
        return ArrayHelper::merge(
            parent::rules(),
            [
                # custom validation rules
            ]
        );
    }
    /**
     * @return \yii\db\ActiveQuery
     */
    public function getStore()
    {
        return $this->hasOne(\yiike\order\model\Store::className(), ['id' => 'store_id']);
    }
}
